﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{
   public class Order_DetailsModel:BaseModel
    {
      
        private int _pro_id;
        private string _order_id;
        private decimal _rebate;
        private int _quantity;

      
        /// <summary>
        /// 
        /// </summary>
        public int Pro_ID
        {
            set { _pro_id = value; }
            get { return _pro_id; }
        }
        /// <summary>
        /// 订单ID，定长20个字符
        /// </summary>
        public string Order_ID
        {
            set { _order_id = value; }
            get { return _order_id; }
        }
       
        /// <summary>
        /// 
        /// </summary>
        public int Quantity
        {
            set { _quantity = value; }
            get { return _quantity; }
        }
        /// <summary>
        /// 购买时折扣
        /// </summary>
        public decimal Discount
        {
            set { _rebate = value; }
            get { return _rebate; }
        }
       /// <summary>
       /// 购买时原价
       /// </summary>
        public decimal Price { get; set; }
       /// <summary>
       /// 购买时价格
       /// </summary>
        public decimal BuyPrice { get; set; }
       /// <summary>
       /// 购买产品名称 
       /// </summary>
        public string ProductName { get; set; }
       /// <summary>
       /// 图片，购物车中显示用，保存数据库不需要
       /// </summary>
        public string Image { get; set; }

       /// <summary>
       /// 小计
       /// </summary>
        public decimal Total {
            get {
                return BuyPrice * Quantity;
            }
        }

    }
}
